﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucTimKiemKhoaHoc.ascx.cs"
    Inherits="STT.Admin.UserControls.ucTimKiemKhoaHoc" %>
<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>

<%--<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>--%>
<%--<div id="content-header">
    <div id="breadcrumb">
        <a href="../Admin/Default.aspx?idpage=1" class="tip-bottom" data-original-title="Về bảng điều khiển">
            <i class="icon-home"></i>Trang chính
        </a>
        <a href="../Admin/Default.aspx?" class="current">Tìm kiếm</a>
        <a href="../Admin/Default.aspx?" class="current">Tìm kiếm khóa học</a>
    </div>
</div>--%>
<div class="widget-box collapsible">
    <div class="widget-title">
        <a href="#collapseOne" data-toggle="collapse" class="">
            <span class="icon"><i class="icon-th"></i></span>
            <h5>Điều kiện tìm kiếm khóa học</h5>
        </a>
    </div>

    <div class="in" id="collapseOne" style="height: auto;">
        <div class="widget-content nopadding">
            <div class="dataTables_wrapper" role="grid">
                <%-- Cac dieu kien tim kiem --%>
                <div class="container-fluid">
                    <div class="row-fluid">
                        <div class="span6">

                            <div class="control-group">
                                <label class="control-label">Mã khóa học: </label>
                                <div class="controls">
                                    <asp:TextBox ID="txtMaKhoaHoc" runat="server" class="span20" placeholder="Mã khóa học"></asp:TextBox>
                                </div>
                            </div>
                            <div class="control-group">
                                <label class="control-label">Tên khóa học: </label>
                                <div class="controls">
                                    <asp:TextBox ID="txtTenKhoaHoc" runat="server" class="span20" placeholder="Tên khóa học"></asp:TextBox>
                                </div>
                            </div>
                            <div class="control-group">
                                <label class="control-label">Tên giảng viên: </label>
                                <div class="controls">
                                    <asp:TextBox ID="txtTenGiangVien" runat="server" class="span20" placeholder="Tên giảng viên"></asp:TextBox>
                                </div>
                            </div>
                            <div class="control-group">
                                <label class="control-label">Số học viên: </label>
                                <div class="controls">
                                    <asp:TextBox ID="txtSoHocVien" runat="server" class="span20" placeholder="Số học viên"></asp:TextBox>
                                </div>
                            </div>
                            <div class="control-group">
                                <label class="control-label">Phòng học: </label>
                                <div class="controls">
                                    <asp:TextBox ID="txtPhongHoc" runat="server" class="span20" placeholder="Phòng học"></asp:TextBox>
                                </div>
                            </div>
                        </div>
                        <div class="span6">

                            <div class="control-group">
                                <label class="control-label">Lớp học :</label>
                                <div class="controls">
                                    <asp:DropDownList ID="ddLopHoc" runat="server" CssClass="span20"></asp:DropDownList>
                                </div>
                            </div>
                            <div class="control-group">
                                <label class="control-label">Thời gian bắt đầu:</label>
                                <div class="controls">
                                    <asp:TextBox ID="txtThoiGianBatDau" runat="server" TextMode="Date" class="span20"
                                        placeholder="Thời gian bắt đầu"></asp:TextBox>
                                </div>
                            </div>
                            <div class="control-group">
                                <label class="control-label">Thời gian kết thúc :</label>
                                <div class="controls">
                                    <asp:TextBox ID="txtThoiGianKetThuc" TextMode="Date" runat="server" class="span20"
                                        placeholder="Thời gian kết thúc"></asp:TextBox>
                                </div>
                            </div>
                            <div class="control-group">
                                <label class="control-label">Năm học :</label>
                                <div class="controls">
                                    <asp:TextBox ID="txtNamHoc" runat="server" class="span20"
                                        placeholder="Năm học"></asp:TextBox>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="fg-toolbar ui-toolbar ui-widget-header ui-corner-bl">
                    <asp:Button ID="btTimKiem" runat="server" Text="Tìm kiếm" CssClass="btn btn-info"
                        OnClick="btTimKiem_Click" />
                </div>
            </div>
        </div>
    </div>
    <%-- Gridview ket qua tim kiem --%>
    <div class="widget-title">
        <a href="#collapseTwo" data-toggle="collapse" class="">
            <span class="icon"><i class="icon-th"></i></span>
            <h5>Kết quả tìm kiếm</h5>
        </a>
    </div>
    <rsweb:ReportViewer ID="rpvKhoaHoc" runat="server"  Width="933px" Height="900px" Font-Names="Verdana" Font-Size="8pt" WaitMessageFont-Names="Verdana" WaitMessageFont-Size="14pt" Visible="False">
        <LocalReport ReportPath="RDLC\TKKhoaHoc.rdlc">
        </LocalReport>

    </rsweb:ReportViewer>
    <div class="in" id="collapseTwo" style="height: auto;">
        <div class="widget-content nopadding">
            <div id="DataTables_Table_0_wrapper" class="dataTables_wrapper" role="grid">
                <div class="fg-toolbar ui-toolbar ui-widget-header ui-corner-bl">
                    
                </div>
            </div>
        </div>
    </div>
</div>

<script>

    function GetThongTin(obj) {
        alert($(obj));
        //$.ajax({
        //    type: "POST",
        //    url: "Default.aspx/GetCustomers",
        //    data: '{searchTerm: "' + SearchTerm() + '", pageIndex: ' + pageIndex + '}',
        //    contentType: "application/json; charset=utf-8",
        //    dataType: "json",
        //    success: OnSuccess,
        //    failure: function (response) {
        //        alert(response.d);
        //    },
        //    error: function (response) {
        //        alert(response.d);
        //    }
        //});
    }

</script>

<%-- </ContentTemplate>   
</asp:UpdatePanel>--%>

